﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JeanFish.Data.Common
{
    public class DbProviderFactoryDecorator:DbProviderFactory
    {
        public static readonly DbProviderFactoryDecorator Instance = new DbProviderFactoryDecorator();

        private DbProviderFactoryDecorator()
            : base(DbProviderServicesDecorator.Instance)
        {
        }

        public override System.Data.Common.DbConnection CreateConnection()
        {
            return new DbConnectionDecorator();
        }
    }
}
